import request from '@/api/request';
// 告警趋势
export function getWarnTrend(params) {
	return request({
		url: '/cloud360-web/screen/pms/alarmtrend',
		method: 'get',
		params
	})
}
// 告警列表
export function getWarnList(data) {
	return request({
		url: '/cloud360-web/waring/list',
		method: 'post',
		data
	})
}
// 告警详情
export function getWarnDetail(params) {
	return request({
		url: `/cloud360-web/waring`,
		method: 'get',
		params
	})
}
// 告警等级
export function getWarnLevel(data) {
	return request({
		url: '/cloud360-web/waring/getSysWaringGroup/level',
		method: 'post',
		data
	})
}
// 告警类型
export function getWarnType(data) {
	return request({
		url: '/cloud360-web/waring/getSysWaringGroup/wartype',
		method: 'post',
		data
	})
}
// 告警通知记录
export function getWarnLog(params) {
	return request({
		url: '/cloud360-web/waring/pushLogs',
		method: 'get',
		params
	})
}
// 告警确认
export function confirmWarn(data) {
	return request({
		url: '/cloud360-web/waring/showOrConfirm',
		method: 'post',
		data,
		isForm: true
	})
}
// 告警解决方式
export function handleWarn(data) {
	return request({
		url: '/cloud360-web/waring/solution',
		method: 'post',
		data
	})
}
// 修改阈值
export function updateWarnTop(data) {
	return request({
		url: '/cloud360-web/customAlarm/info',
		method: 'put',
		data,
		isForm: true
	})
}

//告警通知内容
export function getPMMTAlerts(data) {
	return request({
		url: '/cloud360-web/na_monitor/getPMMTAlerts',
		method: 'get',
		data
	})
}